#include "junix.h"

int main(int argc, char **argv)
{
	char buf[LINE_MAX];
	if( getdomainname(buf, LINE_MAX) == -1)
		err_sys("getdomainname");

	printf("domain name:%s\n",buf);

	if( setdomainname("junix.org",10) == -1)
		err_sys("setdomainname");

    exit(0);
}

